package com.easywork.mystery.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.easycore.utils.BaseController;

@Controller
public class HomeController extends BaseController {

	@RequestMapping("/info")
	public String info() {
		return "demo/success";
	}

	@RequestMapping("/")
	public String view() {
		return "demo/view";
	}

	@RequestMapping("/openWork/{view}")
	public String openWork(@PathVariable("view") String view) {
		return "demo/" + view;
	}

}